package cn.bxshey.resourceSharing.mapper;

import cn.bxshey.resourceSharing.entity.Comments;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * (Comments)表数据库访问层
 *
 * @author makejava
 * @since 2023-12-16 17:54:34
 */
@Mapper
public interface CommentsMapper extends BaseMapper<Comments> {

   //分页查询评论
    List<Comments> selectComments(@Param("id") Long id,@Param("eid") Long eid);


    //新增评论
    int insertComments(Comments comments);


    //条件查询评论总数
    Long countComments(@Param("eid") Long eid);

    //查询指定的多个id评论
    List<Comments> getByAllId(@Param("list") List<String> list);

}

